package com.cmol.peopledetectapp.json;

/**
 * json接口
 * 用户数据类型，保存用户信息
 */
public class User {
    /**
     * 用户名，账户
     */
    private String name;
    /**
     * 用户密码
     */
    private String password;
    /**
     * 用户ID
     */
    private int id;

    public User(String name, String password) {
        this.name = name;
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", id=" + id +
                '}';
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
